import request from '@/utils/request'

// 查询安全相册列表
export function listAttach(query) {
  return request({
    url: '/attach/attach/list',
    method: 'get',
    params: query
  })
}

// 查询安全相册详细
export function getAttach(id) {
  return request({
    url: '/attach/attach/' + id,
    method: 'get'
  })
}

// 新增安全相册
export function addAttach(data) {
  return request({
    url: '/attach/attach',
    method: 'post',
    data: data
  })
}

// 修改安全相册
export function updateAttach(data) {
  return request({
    url: '/attach/attach',
    method: 'put',
    data: data
  })
}

// 删除安全相册
export function delAttach(id) {
  return request({
    url: '/attach/attach/' + id,
    method: 'delete'
  })
}
